package items;

import java.util.ArrayList;

/*
 * Defines wearable rares
 */
public enum Rares {
	Bphat ("Blue Partyhat", 1042),
	Gphat ("Green Partyhat", 1044),
	Pphat ("Purple Partyhat", 1046),
	Rphat ("Red Partyhat", 1038),
	Wphat ("White Partyhat", 1048),
	Yphat ("Yellow Partyhat", 1040),
	Bmask ("Blue H'ween Mask", 1055),
	Gmask ("Green H'ween Mask", 1053),
	Rmask ("Red H'ween Mask", 1057),
	Santa ("Santa Hat", 1050);
	
	public static final String group = "rares";
	private String itemName;
	private int itemNumber;

	public int getItemNumber() {
		return itemNumber;
	}

	public void setItemNumber(int itemNumber) {
		this.itemNumber = itemNumber;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	Rares(String itemName, int itemNumber) {
		this.setItemName(itemName);
		this.setItemNumber(itemNumber);
	}

	@Override
	public String toString() {
		Number string = getItemNumber();
		return string.toString();
	}
	
	public static boolean itemCategory(String category) {
		return category.equalsIgnoreCase("rares") ? true : false;
	}
	
	public static ArrayList<String> itemNameList() {
		ArrayList<String> itemList = new ArrayList<String>();
		for(Rares items : Rares.values()) {
			itemList.add(items.getItemName());
		}
		return itemList;
	}
	
	public static ArrayList<String> itemNumberList() {
		ArrayList<String> itemNumberList = new ArrayList<String>();
		for(Rares items : Rares.values()) {
			itemNumberList.add(items.toString());
		}
		return itemNumberList;
	}
}
